<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/8 0008
 * Time: 上午 9:30
 */

 class DbCommon extends CI_Model
{
    function __construct()
    {
        parent::__construct();
        $this->load->database();
    }

    static private $me;
     static function me(){
         if(!self::$me){
             $me = new self();
         }
         return $me;
     }
     static function db(){
         if(!self::$me){
             $me = new self();
         }
         return $me->db;
     }

}